#pragma once
#ifndef GAME_H
#define GAME_H

class Game
{
public:
	Game();
	void initGrid();				//initialize the board
	void printGrid();				//show current grid state
	void putChess(int,int);			//place the piece
	void runGame();					//keep game running
	void checkOver();				//check whether the game is over
	int * checkLine(int,int);	//check whether there is a line
private:
	int size;		//grid size
	int **grid;		//grid array
	bool isOver;	//game over?
	int curUser;	//current user 1:black -1:white
	const int winFlag = 5;	//condition for winning the game
};


#endif // !GAME
